package org.devocean.groupbuying.web.frontend.displaybeans;

import java.util.HashMap;
import java.util.Map;

import org.devocean.groupbuying.domain.Explored;
import org.devocean.groupbuying.domain.Plan;

public class ExplorerDetailsBean {

	private Map<String, Plan> plans = new HashMap<String, Plan>();

	public ExplorerDetailsBean(Explored explored) {

		for (Plan p : explored.getProduct().getPlans()) {
			plans.put(p.getArticlesLocalization().getArticles().iterator()
					.next().getTitle(), p);
		}
		// get references
	}

	public Map<String, Plan> getPlans() {
		return plans;
	}

	public void setPlans(Map<String, Plan> plans) {
		this.plans = plans;
	}

}
